package com.yangwei.examination.user.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yangwei.examination.teacher.pojo.Paper;
import com.yangwei.examination.teacher.pojo.School;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private Long id;
    private String userName;
    private String password;
    private String phone;
    private String email;
    private String role;
    private String classNum;
    private String majorName;
    private String schoolId;
    private String year;
    @TableField(exist = false)
    private School school;  //用于信息简介

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;  //用于教师在测试列表查看已交卷学生的时间

    @TableField(exist = false)
    private Paper paperList;     //以班为单位 对每个学生的答卷进行批卷

}
